<template>
  <div class="app-container">
    <el-card class="m-t-15 el-card-dict">
      <div slot="header" class="flex-cls-nowrap-spc-btw">
        <span>简单表单组件</span>
      </div>
      <el-button @click="openSimpleForm">打开组件</el-button>
    </el-card>

    <!-- :destroy-on-close="true" -->
    <m-modal-form
      width="660px"
      :close-on-click-modal="false"
      title="新增/修改客户信息"
      :visible.sync="formProperty.visible"
      :form-attrs="formProperty.formAttrs"
      :options="formProperty.options"
      :is-btn-text="formProperty.isBtnText"
      @save="saveForm"
    />

  </div>
</template>

<script>

// 混入 minxin 文件夹下面所有的js文件
const files = require.context("./minxin", false, /\.js$/);
const minxins = [];
files.keys().forEach(key => {
  minxins.push(files(key).default || files(key));
});

export default {
  name: "UseForm",
  mixins: [...minxins],
  data() {
    return {

    };
  }
};
</script>

<style scoped lang="scss">

</style>
